﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Code1.MailDAL" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="Select" TypeName="Code1.MailDTO" UpdateMethod="Update">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="_IdMail" QueryStringField="id" Type="UInt32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField DataField="ToMail" HeaderText="ToMail" SortExpression="ToMail" />
                <asp:BoundField DataField="FromMail" HeaderText="FromMail" SortExpression="FromMail" />
                <asp:BoundField DataField="Sujet" HeaderText="Sujet" SortExpression="Sujet" />
                <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
